package com.chuangshi.core.vote.member.controller.mobile.response;

import com.chuangshi.core.kit.Response;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

/**
 * 会员移动端V1微信授权获取用户信息的返回参数
 *
 * @author marcus
 * @date 2018-11-20
 */
@ApiModel(description = "会员移动端V1微信授权获取用户信息的返回参数")
public class MemberMobileV1Oauth2GetUserInfoResponse extends Response {

	@ApiModelProperty(value = "用户唯一标识", required = true, position = 10)
	@NotNull(message = "用户唯一标识不能为空")
	private String openId;

	@ApiModelProperty(value = "用户统一标识", required = true, position = 20)
	@NotNull(message = "用户统一标识不能为空")
	private String unionId;

	@ApiModelProperty(value = "用户昵称", required = true, position = 30)
	@NotNull(message = "用户昵称不能为空")
	private String nickname;

	@ApiModelProperty(value = "用户性别", required = true, position = 40)
	@NotNull(message = "用户性别不能为空")
	private Integer sex;

	@ApiModelProperty(value = "省", required = true, position = 50)
	@NotNull(message = "省不能为空")
	private String province;

	@ApiModelProperty(value = "市", required = true, position = 60)
	@NotNull(message = "市不能为空")
	private String city;

	@ApiModelProperty(value = "国家", required = true, position = 70)
	@NotNull(message = "国家不能为空")
	private String country;

	@ApiModelProperty(value = "用户头像", required = true, position = 80)
	@NotNull(message = "用户头像不能为空")
	private String headImgUrl;

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getUnionId() {
		return unionId;
	}

	public void setUnionId(String unionId) {
		this.unionId = unionId;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getHeadImgUrl() {
		return headImgUrl;
	}

	public void setHeadImgUrl(String headImgUrl) {
		this.headImgUrl = headImgUrl;
	}

}